import { Controller, Get, Param } from '@nestjs/common';
import { AppService } from './app.service';


@Controller()
export class AppController {
    constructor(private readonly appService: AppService) { }

    @Get('/courseList')
    getFileList() {

        return this.appService.getFileMapList();
    }


    @Get('files/courses/:name1/:name2')
    getMusicLyrics(@Param('name1') name1: string, @Param('name2') name2: string) {
        return this.appService.getFileContent(name1, name2);
    }



}
